Method, apparatus, device and media for publishing video

ABSTRACT

Embodiments of the present disclosure provide methods, apparatus, devices, and media for publishing video. In one exemplary method, acquiring an image and music; presenting the image on a canvas; determining a color of the canvas based on a color in the image; and generating the video for publishing by compositing the image, the canvas, and the music, wherein the video has the music as a soundtrack and statically presents the image on the canvas. In this way, users can freely edit an image and generate a high-quality video according to the edited image, which is beneficial to increase the user&#39;s enthusiasm for participating in short video creation and improve the user&#39;s viscosity.

This application is a continuation of International Application No.PCT/CN2021/141766 filed on Dec. 27, 2021, which claims the priority toand benefits of Chinese Patent Application No. 202110020270.9, filed onJan. 7, 2021. All the aforementioned patent applications are herebyincorporated by reference in their entireties.

FIELD

Embodiments of the present disclosure generally relate to the field ofcomputers, and more particularly to a method, apparatus, electronicdevice, computer-readable storage media, and computer program productfor publishing a video.

BACKGROUND

With the popularity of mobile terminals and the continuous improvementof network access speed, short video has gradually gained the favor ofmobile terminal users thanks to its short time and strong entertainmentcharacteristics. Users of each mobile terminal can not only act asrecipients of information, but also act as producers and publishers ofinformation, which greatly promotes users' enthusiasm to participate inshort video creation. One of the schemes for generating short video iscompositing images such as photographs. However, there is still room forimprovement in various aspects of the presently known schemes.

SUMMARY

In a first aspect of the present disclosure, there is provided a methodfor publishing a video. The method comprises: acquiring an image andmusic; presenting the image on a canvas; determining a color of thecanvas based on a color in the image; and generating the video forpublishing by compositing the image, the canvas, and the music, whereinthe video has the music as a soundtrack and statically presents theimage on the canvas.

In a second aspect of the present disclosure, there is provided anapparatus for publishing a video. The method comprises: an acquisitionmodule configured to acquire an image and music; a presentation moduleconfigured to present the image on a canvas; a determination moduleconfigured to determine a color of the canvas based on a color in theimage; and a generation module configured to generate the video forpublishing by compositing the image, the canvas, and the music, whereinthe video has the music as a soundtrack and statically presents theimage on the canvas.

In a third aspect of the present disclosure, there is provided anelectronic device. The electronic device comprises a processor; and amemory for storing computer programs, the computer programs beingexecuted by the processor to perform the method according to the firstaspect.

In a fourth aspect of the present disclosure, there is provided acomputer-readable storage medium having computer programs storedthereon, wherein the computer program are executed by a processor toperform the method according to the first aspect.

In a fifth aspect of the present disclosure, there is provided computerprograms product comprising computer programs which, when executed by aprocessor, implement the method according to the first aspect.

According to the embodiments of the present disclosure, users can freelyedit an image and generate a high-quality video according to the editedimage, which is beneficial to increase the user's enthusiasm forparticipating in short video creation and improve the user's viscosity.

It should be understood that this Summary is not intended to identifykey features or essential features of the present disclosure, nor is itintended to be used to limit the scope of the present disclosure. Otherfeatures of the present disclosure will become readily apparent from thefollowing description.

DESCRIPTION OF DRAWINGS

Through the following detailed description with reference to theaccompanying drawings, the above and other objectives, features, andadvantages of example embodiments of the present disclosure will becomemore apparent. In the example embodiments of the present disclosure, thesame reference numerals usually refer to the same components.

FIG. 1 illustrates an exemplary user interface of an electronic deviceaccording to some embodiments of the present disclosure;

FIG. 2 illustrates an exemplary user interface of an electronic deviceaccording to some embodiments of the present disclosure;

FIG. 3 illustrates an exemplary user interface of an electronic deviceaccording to some embodiments of the present disclosure;

FIG. 4 illustrates a flowchart of a method for publishing a videoaccording to some embodiments of the present disclosure;

FIG. 5 illustrates a block diagram of apparatus for publishing a videoaccording to some embodiments of the present disclosure;

FIG. 6 illustrates a block diagram of an electronic device capable ofimplementing some embodiments of the present disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

The concepts of the present disclosure will now be described withreference to various exemplary embodiments as illustrated in theaccompanying drawings. It should be understood that the description ofthese embodiments is merely intended to enable those skilled in the artto better understand and to further practice the present disclosure, andis not intended to limit the scope of the present disclosure in any way.It should be noted that where possible, similar or identical referencenumbers may be used throughout the figures and may indicate similar oridentical elements. It will be appreciated by those skilled in the artfrom the following description that alternative embodiments of thestructures and/or methods illustrated herein may be employed withoutdeparting from the principles and concepts of the present disclosure asdescribed.

As used herein, the term “includes” and its variants are to be read asopen-ended terms that mean “includes, but is not limited to.” The term“based on” is to be read as “based at least in part on.” The terms “oneexample embodiment” and “one embodiment” are to be read as “at least oneexample embodiment.” The term “a further embodiment” is to be read as“at least a further embodiment.” Other terms that may occur, but are notmentioned herein, should not be interpreted or limited in a manner thatis contrary to the concepts upon which the embodiments of the presentdisclosure are based, unless explicitly stated.

FIG. 1 illustrates an exemplary user interface of an electronic device100 according to some embodiments of the present disclosure. Theelectronic device 100 may be a cellular phone, a portable electronicdevice, a tablet computer, etc. As shown in FIG. 1 , the electronicdevice 100 includes a display 102 that may be implemented by liquidcrystal display (LCD) technology, organic light emitting diode (OLED)technology, or mini LED technology, but may be implemented by otherdisplay technologies in other embodiments. The display 102 may receivedisplay information from a processor or the like of the electronicdevice 100 and provide visual output to a user based on the receiveddisplay information. The visual output may include graphics, text,icons, video, and any combination thereof. For example, a portion of thevisual output in the user interface may correspond to user interfaceelements, e. g., keys, icons, etc.

In some embodiments, the display 102 may be implemented by a touchsensitive display that provides input and output interfaces between theelectronic device 100 and a user. Touch sensitive displays are sometimesreferred to for convenience as “touch screens”. The display 102 mayinclude a touch sensitive surface, a sensor, and/or an array of sensorsthat receive input from a user based on haptic sensations. These sensorsmay detect contact or proximity on the display 102 and translate thedetected contact into interaction with user interface elements on thedisplay 102. It should be appreciated that the display 102 may beimplemented using a variety of touch sensing technologies now known orlater developed, including but not limited to capacitive, resistive, andsurface acoustic wave technologies. In some embodiments, a user mayinteract with the display 102 using a finger or stylus.

As shown in FIG. 1 , the electronic device 100 also includes a camera104, also referred to as a camera head, disposed within the display 102.The camera 104 is provided on the front surface of the electronic device100, which acts as a front camera for the user to perform self-shootingcreation. The camera layout shown in FIG. 1 is a “cutout screen” layout,and in other embodiments, the electronic device 100 may use othersuitable layouts, such as a non-full screen layout or a “pop-up” layout.In addition to the camera 104, the electronic device 100 may alsoinclude one or more cameras (not shown) disposed on the back side, i.e., a rear camera, to provide enhanced camera functionality. A user canswitch between the front camera and the rear camera by clicking an iconfor switching cameras, etc.

As shown in FIG. 1 , display 102 presents an edit interface for anapplication for video sharing. A canvas 124 may be presented in the editinterface and an image 106 is presented on the canvas 124. The image 106may be a photograph taken by the user, a photograph selected by the userfrom an album (e. g., a local album or a cloud album), etc. For example,the application may call a camera (e. g., camera 104) to take aphotograph and present the photograph on the canvas 124. As anotherexample, the application may also call up an image such as a photographin an album and present the photograph on the canvas 124.

It should be understood that “canvas” herein merely refers to the mannerin which it is presented and does not imply an implementation. Inparticular, the canvas 124, as a background for the image 106, servesfor presenting the image 106 on the canvas 124. The canvas 124 mayfurther allow a user to edit the image 106 on the canvas 124. The canvas124 may be implemented or implemented in a variety of different ways.For example, the canvas could be implemented by using a backgroundimage, or could be implemented by a container.

In some embodiments, a color may be extracted from the image 106 and acolor of the canvas 124 determined based on the color extracted from theimage 106. Since the color of the canvas 124 is extracted from the image106, harmony of the entire picture can be ensured. The visual impact anduser satisfaction of the work is significantly improved compared topresenting a black or white border around the image 106. Alternatively,the canvas 124 can be made by Gaussian blurring the image 106.

In some embodiments, a color may be extracted from the image 106 andused as the color of the canvas 124. For example, the background colorof the image 106 may be extracted from the image 106. In general, thebackground occupies most of the area of the image 106, so extracting thebackground color of the image 106 as the color of the canvas 124 allowsfor a smoother transition. As another example, the foreground color ofthe image 106, e. g., the color of the main object, may be extractedfrom the image 106. For example, the foreground color of the image 106is the color of a heart pattern. In this manner, the dominant hue of themain display object in image 106 may be presented in canvas 124.

In some embodiments, multiple colors may be extracted from the image 106and the color of the canvas 124 adjusted based on the colors. Forexample, the image 106 may be divided into portions and the colors ofthe regions of the canvas 124 adjacent to the respective portions of theimage 106 may be designated as the colors of the respective portions ofthe image 106. In addition, a color gradient effect may be performed indifferent areas of the canvas 124. In some embodiments, as shown in FIG.1 , the color of the top half of image 106 may be extracted at alocation 130 and the color of the bottom half of image 106 may beextracted at a location 132. For example, the location 130 may be ageometric center of the top half of image 106 and the location 132 maybe a geometric center of the bottom half of image 106. It should beunderstood that other representative locations may also be used tocharacterize the color of different portions of the image. The color ofimage 106 at the location may be used to determine the dominant hue forthe top half of canvas 124, and the color of image 106 at the location132 may be used to determine the dominant hue for the bottom half ofcanvas 124. A color gradient effect of the two colors may then beachieved between the two portions of the canvas 124. Alternatively, acolor gradient effect of two colors may also be achieved throughout thecanvas 124. By determining the color of the canvas 124 through colorgradient of two colors, the hue of the entire picture can be betterensured to be harmonious, and the canvas 124 would not attract too muchattention due to too numerous colors of the canvas.

In some embodiments, the edit interface may include a plurality ofediting user interface elements, e. g., a text user interface element116, a sticker user interface element 118, a special effect userinterface element 120, and a filter user interface element 122, etc. Auser can edit the image 106 through these editing user interfaceelements. For example, a user may click on the text user interfaceelement 116 to add text to the image 106, click on sticker userinterface element 118 to add a sticker to the image 106, click on aspecial effect user interface element 120 to apply the special effect tothe image 106, or click on filter user interface element to adjust thefilter of the image 106. In addition, a user may click on a userinterface element 15 to expand more editing user interface elements formore editing functions. It should be understood that the edit interfacemay provide more or fewer editing user interface elements. For example,these editing functions may be applied to the entire video generatedbased on the image 106.

As shown in FIG. 1 , a user may select music at a music selection userinterface element 110 as a soundtrack for a video, e. g., “Heart”.Alternatively, the application may also image process the image 106 toacquire information about the image and automatically recommend music asa soundtrack for the video based on the information of the image. Forexample, the image 106 may contain metadata of shot locations, exposureconditions, etc. from which the application may infer the user's shotscene and possible moods so as to recommend corresponding music.Additionally, the application may identify scenes in the image 106 andrecommend music correspondingly.

If a user is not satisfied with the photographing effect, he/she mayclick to return to a user interface element 127 to a photographinginterface for re-photographing. Alternatively, if the user wants tochange other images in the album, he/she may click to return to the userinterface element 127 to the album interface to re-select the image.

FIG. 2 illustrates an exemplary user interface of an electronic device100 according to some embodiments of the present disclosure. As shown inFIG. 2 , the user may edit the image on the canvas 124. For example, theuser performs, on the canvas 124, an edit operation with the image 106as a graphical object, thereby enabling free editing of the image 106.For example, the user may zoom, rotate, and/or drag the image 106. Asshown in FIG. 2 , a user's finger contacts the display 102 at positions50 and 52 to perform a two-finger gesture operation which may be used tozoom or rotate the image 106, etc. In addition, the user may also dragthe edges of the image 106 to stretch or shrink the image 106. It shouldbe appreciated that the user may also edit the image 106 using othersuitable gesture or the like.

After the user performs an edit operation, the electronic device 100 maypresent a corresponding edit effect on the display 102. For example, asshown in FIG. 2 , the rotation effect of the image 106 may be displayedon the display 102 in real time as the user performs a rotation gestureat the locations 50 and 52. The zoom effect of the image 106 may also bedisplayed on the display 102 in real time as the user performs the zoomoperation. The dragging effect of the image 106 may also be displayed inreal time on the display 102 when the user performs a draggingoperation. Other edit effects of the image 106 may also be displayed onthe display 102 in real time as the user performs other edit operations.By freely editing images on the canvas and combining the edited imageswith the canvas to generate high quality video, the user's enthusiasmfor participating in short video authoring can be increased, and theuser's viscosity can be increased.

In some embodiments, the color of the canvas 124 may remain unchangedduring user editing of the image 106. For example, in FIG. 2 , the colorof the canvas 124 may be the same as the color in FIG. 1 . In otherembodiments, during user editing of the image 106, the color of canvas124 may change in real-time to accommodate the edited image. Forexample, in FIG. 2 , the dominant hue of the top half of the canvas 124may be determined based on the color of the center point of the top halfof the image 106, and the dominant hue of the bottom half of the canvas124 may be determined based on the color of the center point of thebottom half of the image 106. As the image 106 is rotated, the shape ofthe top and bottom halves of the image changes from rectangular totrapezoidal and the center position of the image 106 changes.

In some embodiments, after the user completes image editing, the usermay click on a publishing user interface element 108 to publish thevideo. Meanwhile, the application may determine the length of the videoto be generated based on the image 106, for example, the application maydetermine the length of the music based on the length of the music inorder to preserve the integrity of the music and ensure a completesoundtrack experience.

FIG. 3 illustrates an exemplary user interface of an electronic device100 according to some embodiments of the present disclosure. The userinterface shows a video 200 generated by compositing the image 106, thecanvas 124, and the music, which statically presents the image 106throughout the length of the video 200. By statically presenting theimage 106 in the video 200, the size of the video 200 is not increasedsignificantly while assuring the quality of the image in the video 200.In this manner, video can be conveniently shared over a network and theuser's visual experience is enhanced.

In some embodiments, the video 200 may be generated by integrating theimage 106 with the canvas 124. The color of the canvas 124 can ensureoverall picture harmony in the manner described above.

In some embodiments, an icon of the music, as well as a name thereof maybe displayed at a location 202 of the video 200, or lyrics of a song maybe scrolled, etc. It should be understood that the location 202 isprovided by way of example only and may be displayed in any othersuitable location of the video 200.

In some embodiments, the dynamic sticker 204 may be presented in thevideo 200, wherein the dynamic sticker 204. By adding dynamic elementsin the static image, the visual experience of the video can be enhanced.For example, the dynamic sticker 204 may be a dynamic timestamp stickerdynamically presenting a timestamp, such as “Jan. 1, 2021”.

In some embodiments, the dynamic sticker 204 may be presented accordingto the tempo of the music. For example, when the music tempo is fast,the dynamic presenting of the dynamic sticker 204 is also fast.Conversely, when the music tempo is slower, the dynamic presenting ofthe dynamic sticker 204 is also slower. In this manner, a sense ofrhythm of the video can be enhanced.

In some embodiments, the dynamic sticker 204 may be automaticallygenerated by the application, e. g., the dynamic timestamp stickerdisplays a time or a date when the video was made. For example, afterthe user clicks on the publishing user interface element 108, thedynamic sticker 204 is added when the video 200 is generated.Alternatively, the dynamic sticker 204 may be generated by the userediting. For example, the user may click on the text user interfaceelement 116 shown in FIG. 2 to add a text box or text in the canvas 124.These texts are then converted to the dynamic stickers 204 when thevideo 200 is generated after the user clicks on the publishing userinterface element 108.

FIG. 4 illustrates a flowchart of a method 300 for publishing a videoaccording to some embodiments of the present disclosure. For example,the method 300 may be implemented at the electronic device 100. At block302, the image and the music are acquired. For example, the image may beacquired by photographing or by selecting an image from an album. Asanother example, the music matching the image may be automaticallyloaded, or the music may be randomly loaded. The user may also manuallyselect the music, for example, through the music selection userinterface element 110.

At block 304, the image is presented on the canvas. For example, asshown in FIGS. 1-2 , the image 106 may be displayed on the canvas 124.

At block 306, the color of the canvas 124 is determined based on thecolor in the image 106. For example, the color of the canvas may bedetermined from the color of one or more regions in the image such thatdifferent colors of the canvas may be presented for different images.

It should be noted that although block 306 is shown in FIG. 3 asfollowing block 304, block 306 and block 304 may be performed in otherorders. That is, block 306 may be performed before block 304 or inparallel with block 304. For example, during loading the image, thecanvas and the image may be presented simultaneously. At this point, thecolor of the canvas may have been determined based on the color of theimage. That is, the color of the canvas may have been determined priorto presenting the canvas and the image.

In some embodiments, a first color is extracted from a first portion ofthe image. A second color is extracted from a second portion of theimage. The color of the canvas is determined based on the first colorand a second color, wherein the color of the canvas gradients from thefirst color to the second color, from a first area of the canvasadjacent to the first portion to a second area of the canvas adjacent tothe second portion. For example, the first portion may be the top halfof the image 106 up and down the display 102 in FIG. 2 , and the secondportion may be the bottom half of the image 106 up and down the display102 in FIG. 2 . Alternatively, the first portion may be the upper halfof the image 106 along a long side direction of the image 106 in FIG. 2, and the second portion may be the lower half of the image along thelong side direction of the image 106 in FIG. 2 .

In some embodiments, an edit operation is received on the canvas 124with the image as a graphical object. For example, the edit operationmay be zooming, rotating or dragging the image 106.

In some embodiments, in response to receiving an edit operation, an editeffect on the image 106 is presented on the canvas 124. The video isgenerated by compositing the edited image, the canvas, and the music,wherein the video has the music as a soundtrack and statically presentsthe edited image on the canvas. By presenting the edit effect, the usercan get real-time feedback, thereby facilitating modification andadjustment.

At block 308, a video is generated by compositing the image 106, thecanvas 124, and music, wherein the video has the music as a soundtrackand statically presents the image 106 on the canvas 124. In someembodiments, the length of the video is determined based on the lengthof the music. For example, the length of the video is equal to thelength of the music, thereby ensuring a complete soundtrack experience.

In some embodiments, a dynamic sticker is presented in a video, whereinthe dynamic sticker presents text dynamically. For example, the dynamicsticker includes a dynamic timestamp sticker dynamically presenting thetimestamp. For example, the dynamic sticker is presented at the tempo ofthe music.

In some embodiments, an input to add text on the canvas may be received,and in response to receiving the input, the input text may be presentedon the canvas. The dynamic sticker is then generated based on the inputtext.

FIG. 5 illustrates a block diagram of apparatus 400 for publishing avideo according to some embodiments of the present disclosure. Theapparatus 400 comprises: an acquisition module 402 configured to acquirethe image and the music; a presentation module 404 configured to presentthe image on the canvas; a determination module 406 configured todetermine the color of the canvas based on the color in the image; and ageneration module 408 configured to generate the video for publishing bycompositing the image, the canvas, and the music, wherein the video hasthe music as a soundtrack and statically presents the image on thecanvas.

In some embodiments, the generation module 408 is configured to receive,on the canvas, an edit operation with the image as the graphical object;and generating the video by compositing the edited image, the canvas,and the music, wherein the video has the music as the soundtrack andstatically presents the edited image.

In some embodiments, the generation module 408 is further configured topresent an edit effect on the image on the canvas in response toreceiving the edit operation.

In some embodiments, the apparatus 400 further comprises: a firstextraction module configured to extract a first color from the firstportion of the image; a second extraction module configured to extract asecond color from the second portion of the image; and a determinationmodule configured to determine the color of the canvas based on thefirst color and the second color, wherein the color of the canvasgradients from the first color to the second color from the first areaof the canvas adjacent to the first portion to the second area of thecanvas adjacent to the second portion.

In some embodiments, the apparatus 400 further comprises: adetermination module configured to determine the length of the videobased on the length of the music.

In some embodiments, the generation module 408 is further configured topresent the dynamic sticker in the video, wherein the dynamic stickerdynamically presents text. In some embodiments, the dynamic stickerincludes the dynamic timestamp sticker dynamically presenting thetimestamp. In some embodiments, presenting the dynamic sticker includespresenting the dynamic sticker at the tempo of the music.

In some embodiments, the apparatus 400 further comprises: anotherreceiving module configured to receive an input to add text on thecanvas; another presenting module configured to present the text on thecanvas in response to receiving the input; and another generation moduleconfigured to generate the dynamic sticker based on the text.

In some embodiments, the edit operation with the image as the graphicalobject comprises at least one of: zooming, rotating, or dragging theimage.

FIG. 6 illustrates a block diagram of an electronic device 500 capableof implementing some embodiments of the present disclosure. Theelectronic device 100 as shown in FIGS. 1-3 or the apparatus 400 asshown in FIG. 5 may be implemented by a device 500. As shown in FIG. 6 ,the device 500 includes a central process unit (CPU) 501, which canexecute various suitable actions and processing based on the computerprogram instructions stored in the read-only memory (ROM) 502 orcomputer program instructions loaded in the random-access memory (RAM)503 from a storage unit 508. The RAM 503 can also store all kinds ofprograms and data required by the operations of the device 500. CPU 501,ROM 502 and RAM are connected to each other via a bus 504. Theinput/output (I/O) interface 505 is also connected to the bus 504.

A plurality of components in the device 500 is connected to the I/Ointerface 505, including: an input unit 506, such as keyboard, mouse andthe like; an output unit 507, e.g., various kinds of display andloudspeakers etc.; a storage unit 508, such as magnetic disk and opticaldisk etc.; and a communication unit 509, such as network card, modem,wireless transceiver and the like. The communication unit 509 allows thedevice 500 to exchange information/data with other devices via thecomputer network, such as Internet, and/or various telecommunicationnetworks.

The above described each procedure and processing, such as the method300, can also be executed by the processing unit 501. For example, insome embodiments, the method 300 can be implemented as a computersoftware program tangibly included in the machine-readable medium, e.g.,storage unit 508. In some embodiments, the computer programs can bepartially or fully loaded and/or mounted to the device 500 via ROM 502and/or communication unit 509. When the computer programs are loaded toRAM 503 and executed by the CPU 501, one or more steps of the abovedescribed method 300 can be implemented. Alternatively, in otherembodiments, CPU 501 may be configured to perform method 300 in anyother suitable manner (e. g., via firmware).

The present disclosure can be method, apparatus, system and/or computerprogram product. The computer program product can include acomputer-readable storage medium, on which the computer-readable programinstructions for executing various aspects of the present disclosure areloaded.

The computer-readable storage medium can be a tangible apparatus thatmaintains and stores instructions utilized by the instruction executingapparatuses. The computer-readable storage medium can be, but notlimited to, such as electrical storage device, magnetic storage device,optical storage device, electromagnetic storage device, semiconductorstorage device or any appropriate combinations of the above. Moreconcrete examples of the computer-readable storage medium(non-exhaustive list) include: portable computer disk, hard disk,random-access memory (RAM), read-only memory (ROM), erasableprogrammable read-only memory (EPROM or flash), static random-accessmemory (SRAM), portable compact disk read-only memory (CD-ROM), digitalversatile disk (DVD), memory stick, floppy disk, mechanical codingdevices, punched card stored with instructions thereon, or a projectionin a slot, and any appropriate combinations of the above. Thecomputer-readable storage medium utilized here is not interpreted astransient signals per se, such as radio waves or freely propagatedelectromagnetic waves, electromagnetic waves propagated via waveguide orother transmission media (such as optical pulses via fiber-opticcables), or electric signals propagated via electric wires.

The described computer-readable program instruction can be downloadedfrom the computer-readable storage medium to each computing/processingdevice, or to an external computer or external storage via Internet,local area network, wide area network and/or wireless network. Thenetwork can include copper-transmitted cable, optical fibertransmission, wireless transmission, router, firewall, switch, networkgate computer and/or edge server. The network adapter card or networkinterface in each computing/processing device receives computer-readableprogram instructions from the network and forwards the computer-readableprogram instructions for storage in the computer-readable storage mediumof each computing/processing device.

The computer program instructions for executing operations of thepresent disclosure can be assembly instructions, instructions ofinstruction set architecture (ISA), machine instructions,machine-related instructions, microcodes, firmware instructions, statesetting data, or source codes or target codes written in anycombinations of one or more programming languages, wherein theprogramming languages consist of object-oriented programming languages,e.g., Smalltalk, C++ and so on, and traditional procedural programminglanguages, such as “C” language or similar programming languages. Thecomputer-readable program instructions can be implemented fully on theuser computer, partially on the user computer, as an independentsoftware package, partially on the user computer and partially on theremote computer, or completely on the remote computer or server. In thecase where remote computer is involved, the remote computer can beconnected to the user computer via any type of networks, including localarea network (LAN) and wide area network (WAN), or to the externalcomputer (e.g., connected via Internet using the Internet serviceprovider). In some embodiments, state information of thecomputer-readable program instructions is used to customize anelectronic circuit, e.g., programmable logic circuit, field programmablegate array (FPGA) or programmable logic array (PLA). The electroniccircuit can execute computer-readable program instructions to implementvarious aspects of the present disclosure.

Various aspects of the present disclosure are described here withreference to flow chart and/or block diagram of method, apparatus(system) and computer program products according to embodiments of thepresent disclosure. It should be understood that each block of the flowchart and/or block diagram and the combination of various blocks in theflow chart and/or block diagram can be implemented by computer-readableprogram instructions.

The computer-readable program instructions can be provided to theprocessing unit of general-purpose computer, dedicated computer or otherprogrammable data processing apparatuses to manufacture a machine, suchthat the instructions that, when executed by the processing unit of thecomputer or other programmable data processing apparatuses, generate anapparatus for implementing functions/actions stipulated in one or moreblocks in the flow chart and/or block diagram. The computer-readableprogram instructions can also be stored in the computer-readable storagemedium and cause the computer, programmable data processing apparatusand/or other devices to work in a particular manner, such that thecomputer-readable medium stored with instructions contains an article ofmanufacture, including instructions for implementing various aspects ofthe functions/actions stipulated in one or more blocks of the flow chartand/or block diagram.

The computer-readable program instructions can also be loaded intocomputer, other programmable data processing apparatuses or otherdevices, so as to execute a series of operation steps on the computer,other programmable data processing apparatuses or other devices togenerate a computer-implemented procedure. Therefore, the instructionsexecuted on the computer, other programmable data processing apparatusesor other devices implement functions/actions stipulated in one or moreblocks of the flow chart and/or block diagram.

The flow chart and block diagram in the drawings illustrate systemarchitecture, functions and operations that may be implemented bysystem, method and computer program product according to multipleimplementations of the present disclosure. In this regard, each block inthe flow chart or block diagram can represent a module, a part ofprogram segment or code, wherein the module and the part of programsegment or code include one or more executable instructions forperforming stipulated logic functions. In some alternativeimplementations, it should be noted that the functions indicated in theblock can also take place in an order different from the one indicatedin the drawings. For example, two successive blocks can be in factexecuted in parallel or sometimes in a reverse order dependent on theinvolved functions. It should also be noted that each block in the blockdiagram and/or flow chart and combinations of the blocks in the blockdiagram and/or flow chart can be implemented by a hardware-based systemexclusive for executing stipulated functions or actions, or by acombination of dedicated hardware and computer instructions.

Various implementations of the present disclosure have been describedabove and the above description is only exemplary rather than exhaustiveand is not limited to the implementations of the present disclosure.Many modifications and alterations, without deviating from the scope andspirit of the explained various implementations, are obvious for thoseskilled in the art. The selection of terms in the text aims to bestexplain principles and actual applications of each implementation andtechnical improvements made in the market by each embodiment, or enableother ordinary skilled in the art to understand implementations of thepresent disclosure.

What is claimed is:
 1. A method for publishing a video, comprising:acquiring an image and music; presenting the image on a canvas;determining a color of the canvas based on a color in the image; andgenerating the video for publishing by compositing the image, thecanvas, and the music, wherein the video has the music as a soundtrackand statically presents the image on the canvas.
 2. The method of claim1, wherein generating the video comprises: receiving, on the canvas, anedit operation with the image as a graphical object; and generating thevideo by compositing the edited image, the canvas, and the music,wherein the video has the music as a soundtrack and statically presentsthe edited image.
 3. The method of claim 2, wherein generating the videofurther comprises: in response to receiving the edit operation,presenting an edit effect on the image on the canvas.
 4. The method ofclaim 1, wherein determining the color of the canvas comprises:extracting a first color from a first portion of the image; extracting asecond color from a second portion of the image; and determining thecolor of the canvas based on the first color and the second color,wherein, from a first area of the canvas adjacent to the first portionto a second area of the canvas adjacent to the second portion, the colorof canvas gradients from the first color to the second color.
 5. Themethod of claim 1, further comprising: determining a length of the videobased on a length of the music.
 6. The method of claim 1, whereingenerating the video further comprises presenting a dynamic sticker inthe video, wherein the dynamic sticker dynamically presents a text. 7.The method of claim 6, wherein the dynamic sticker comprises a dynamictimestamp sticker dynamically presenting a timestamp.
 8. The method ofclaim 6, wherein presenting the dynamic sticker comprises presenting thedynamic sticker at a tempo of the music.
 9. The method of claim 6,further comprising: receiving an input to add a text on the canvas;presenting the text on the canvas in response to receiving the input;and generating the dynamic sticker based on the text.
 10. The method ofclaim 2, wherein the edit operation with the image as a graphical objectcomprises at least one of: zooming, rotating, or dragging the image. 11.An electronic device, comprising: a processor; and a memory for storingcomputer programs, the computer programs being executed by the processorto perform a method, the method comprising: acquiring an image andmusic; presenting the image on a canvas; determining a color of thecanvas based on a color in the image; and generating a video forpublishing by compositing the image, the canvas, and the music, whereinthe video has the music as a soundtrack and statically presents theimage on the canvas.
 12. The device of claim 11, wherein generating thevideo comprises: receiving, on the canvas, an edit operation with theimage as a graphical object; and generating the video by compositing theedited image, the canvas, and the music, wherein the video has the musicas a soundtrack and statically presents the edited image.
 13. The deviceof claim 12, wherein generating the video further comprises: in responseto receiving the edit operation, presenting an edit effect on the imageon the canvas.
 14. The device of claim 11, wherein determining the colorof the canvas comprises: extracting a first color from a first portionof the image; extracting a second color from a second portion of theimage; and determining the color of the canvas based on the first colorand the second color, wherein, from a first area of the canvas adjacentto the first portion to a second area of the canvas adjacent to thesecond portion, the color of canvas gradients from the first color tothe second color.
 15. The device of claim 11, the method furthercomprising: determining a length of the video based on a length of themusic.
 16. The device of claim 11, wherein generating the video furthercomprises presenting a dynamic sticker in the video, wherein the dynamicsticker dynamically presents a text.
 17. The device of claim 16, whereinthe dynamic sticker comprises a dynamic timestamp sticker dynamicallypresenting a timestamp.
 18. The device of claim 16, wherein presentingthe dynamic sticker comprises presenting the dynamic sticker at a tempoof the music.
 19. The device of claim 16, the method further comprising:receiving an input to add a text on the canvas; presenting the text onthe canvas in response to receiving the input; and generating thedynamic sticker based on the text.
 20. A computer-readable storagemedium having computer programs stored thereon, wherein the computerprograms are executed by a processor to perform a method, the methodcomprising: acquiring an image and music; presenting the image on acanvas; determining a color of the canvas based on a color in the image;and generating a video for publishing by compositing the image, thecanvas, and the music, wherein the video has the music as a soundtrackand statically presents the image on the canvas.